package com.hzit.exception;

import org.springframework.util.StringUtils;

import java.util.Arrays;

public class NotPermissionException extends RuntimeException
{
    private static final long serialVersionUID = 1L;

    public NotPermissionException(String message)
    {
        super(message);
    }

    public NotPermissionException(String[] message)
    {
        super(StringUtils.collectionToCommaDelimitedString(Arrays.asList(message)));
    }
}